/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ucmconfchecker.pArchitecture;

import java.util.ArrayList;

/**
 *
 * @author Administrador
 */
public class Architecture<T/*element*/,G/*group*/> {
    private ArrayList<G> components;
    private ArrayList<T> responsibilities;
    
    public Architecture(ArrayList<G> components, 
                        ArrayList<T> responsibilities){
        this.components = components;
        this.responsibilities = responsibilities;
    }
    @Override
    public String toString(){
        String result = "";
        result+="Components: \n";
        for(G comp: getComponents()){
            result+="  "+ comp.toString() + "\n";
        }result+="responsibilities: \n";
        for(T resp: getResponsibilities())
            result+="  "+resp.toString()+ "\n";
        return result;
    }

    /**
     * @return the components
     */
    public ArrayList<G> getComponents() {
        return components;
    }

    /**
     * @return the responsibilities
     */
    public ArrayList<T> getResponsibilities() {
        return responsibilities;
    }
    
}
